import { Component, OnInit } from '@angular/core';
import{ActivatedRoute,Params} from  '@angular/router';

@Component({
  selector: 'app-product-detail',
  templateUrl: './product-detail.component.html',
  styleUrls: ['./product-detail.component.scss']
})
export class ProductDetailComponent implements OnInit {
	productTitle: string;
	productItem: object;
  constructor(private routeInfo:ActivatedRoute) { }

  ngOnInit() {
  	console.log(this.routeInfo);
  	this.productTitle = this.routeInfo.snapshot.params['productTitle'];
  	this.productItem = this.routeInfo.snapshot.queryParams;
  }

}
